import request from '@/utils/request'

// 查询项目合同付款计划列表
export function listDealContractPlanDebt(query) {
  return request({
    url: '/contract/yueYinDealContractPlanDebt/list',
    method: 'get',
    params: query
  })
}

// 查询项目合同付款计划详细
export function getDealContractPlanDebt(id) {
  return request({
    url: '/contract/yueYinDealContractPlanDebt/' + id,
    method: 'get'
  })
}

// 保存项目合同付款计划
export function saveDealContractPlanDebt(data) {
  return request({
    url: '/contract/yueYinDealContractPlanDebt/save',
    method: 'post',
    data: data
  })
}

// 删除项目合同付款计划
export function delDealContractPlanDebt(id) {
  return request({
    url: '/contract/yueYinDealContractPlanDebt/plan' + id,
    method: 'delete'
  })
}

// 导出项目合同付款计划
export function exportDealContractPlanDebt(query) {
  return request({
    url: '/contract/yueYinDealContractPlanDebt/export',
    method: 'get',
    params: query
  })
}
